<style>
    .r_info .row .rowR .pic a img{
        width: 80px;
    }
</style>
<li class="m2R">
    <div class="r_m2">
        <div class="r_layer">药品推荐</div>
        <div class="r_info">
            <foreach name="rec_goods_list" item="ritem">
                <php>
                    $picture_arr = explode(",",$ritem['pictures']);
                    $picture = $picture_arr[0];
                </php>
            <ul class="row">
                <li class="rowR">
                    <div class="pic" style="margin-top: 10px"><a href="{:U('product/detail/index')}&id={$ritem.id}" title="{$ritem.pname}" target="_blank"><img src="{:sp_get_image_preview_url($picture)}" alt="{$ritem.pname}"></a></div>
                    <div class="in">
                        <div class="title" style="margin-top: 30px"><a href="{:U('product/detail/index')}&id={$ritem.id}" title="{$ritem.pname}" target="_blank">{$ritem.pname}</a></div>
                    </div>
                </li>
            </ul>
            </foreach>

        </div>
    </div>
</li>